<html>
<body>
<script>
   var xmlHttpRequest;

function asdf()
{
    //create XMLHttpRequest object
    xmlHttpRequest = (window.XMLHttpRequest) ? 
new XMLHttpRequest() : new ActiveXObject("Msxml2.XMLHTTP");

    //If the browser doesn't support Ajax, exit now
    if (xmlHttpRequest == null)
return;

    //Initiate the XMLHttpRequest object
    xmlHttpRequest.open("GET", "ajax.php", true);

    //Setup the callback function
    xmlHttpRequest.onreadystatechange = StateChange;

    //Send the Ajax request to the server with the GET data
    xmlHttpRequest.send(null);
}
function StateChange()
{
    if(xmlHttpRequest.readyState == 4)
    {
	document.getElementById('foo').innerHTML=xmlHttpRequest.responseText;
    }
}
</script>

<form id="form1">
<div>
<input type="text" id="lblTime">

<br>
<div style="color:#ff00ff;" onclick="asdf();">foo</div>

</div>

<div id="foo">
</div>

</form>
</body>
</html>
